package edu.usc.tweetool.hibernate;

/**
 * FollowId entity. @author MyEclipse Persistence Tools
 */

public class FollowId implements java.io.Serializable {

	// Fields

	private String follower;
	private String following;

	// Constructors

	/** default constructor */
	public FollowId() {
	}

	/** full constructor */
	public FollowId(String follower, String following) {
		this.follower = follower;
		this.following = following;
	}

	// Property accessors

	public String getFollower() {
		return this.follower;
	}

	public void setFollower(String follower) {
		this.follower = follower;
	}

	public String getFollowing() {
		return this.following;
	}

	public void setFollowing(String following) {
		this.following = following;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FollowId))
			return false;
		FollowId castOther = (FollowId) other;

		return ((this.getFollower() == castOther.getFollower()) || (this
				.getFollower() != null
				&& castOther.getFollower() != null && this.getFollower()
				.equals(castOther.getFollower())))
				&& ((this.getFollowing() == castOther.getFollowing()) || (this
						.getFollowing() != null
						&& castOther.getFollowing() != null && this
						.getFollowing().equals(castOther.getFollowing())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getFollower() == null ? 0 : this.getFollower().hashCode());
		result = 37 * result
				+ (getFollowing() == null ? 0 : this.getFollowing().hashCode());
		return result;
	}

}